package com.dragon.english_practice_back.service;

import com.dragon.english_practice_back.entity.WordBook;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author 伫倚
* @description 针对表【word_book(单词书)】的数据库操作Service
* @createDate 2025-04-13 14:55:44
*/
public interface WordBookService extends IService<WordBook> {

    List<WordBook> getLearningWordBook(int userId);
    List<WordBook> getLearnedWordBook(int userId);

    Map<String, Boolean> getBookStatus(int userId, Integer wordBookId);

    // 学习某本书
    boolean learnWordBook(int userId, Integer bookId);
    // 取消学习某本书
    boolean unlearnWordBook(int userId, Integer bookId);
    // 删除学习记录
    boolean deleteLearningRecord(int userId, Integer bookId);

}
